package oa.hleast.xswl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import oa.hleast.xswl.pojo.domain.UmsAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UmsAddressMapper extends BaseMapper<UmsAddress> {

    @Select("<script>" +
            " SELECT * from ums_address where user_id =#{userId} " +
            "</script>")
    List<UmsAddress> listByUserId(@Param("userId") Long userId);

    @Select("<script>" +
            " SELECT * from ums_address" +
            "</script>")
    List<UmsAddress> findAllList();
}
